package com.example.diarymanger.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.diarymanger.bean.DiaryBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DiaryMapper extends BaseMapper<DiaryBean> {

    @Select("select max(diary_id) from diary")
    Integer selectMaxDiaryId();
}
